import request from "@/utils/request";

// 查询原文件归档位置列表
export function listArchiveLocation(query) {
  return request({
    url: "/contract/ArchiveLocation/list",
    method: "get",
    params: query,
    handleError: true,
  });
}

// 查询原文件归档位置详细
export function getArchiveLocation(archiveLocationId) {
  return request({
    url: "/contract/ArchiveLocation/" + archiveLocationId,
    method: "get",
    handleError: true,
  });
}

// 新增原文件归档位置
export function addArchiveLocation(data) {
  return request({
    url: "/contract/ArchiveLocation",
    method: "post",
    data: data,
  });
}

// 修改原文件归档位置
export function updateArchiveLocation(data) {
  return request({
    url: "/contract/ArchiveLocation",
    method: "put",
    data: data,
  });
}

// 删除原文件归档位置
export function delArchiveLocation(archiveLocationId) {
  return request({
    url: "/contract/ArchiveLocation/" + archiveLocationId,
    method: "delete",
  });
}
